import request from '@/utils/request'

export function getPopularList(query) {
  return request({
    url: '/documentation/popular/getList',
    method: 'post',
    data: query
  })
}

export function getDocumentation(id) {
  return request({
    url: '/documentation/popular/getDetail',
    method: 'post',
    data: id
  })
}

export function changePopularStatusByID(pv) {
  return request({
    url: '/documentation/popular/change-status',
    method: 'post',
    data: pv
  })
}

export function removePopularByID(pv) {
  return request({
    url: '/documentation/popular/delete',
    method: 'post',
    data: pv
  })
}

export function savePopular(data) {
  return request({
    url: '/documentation/popular/save',
    method: 'post',
    data: data
  })
}
